package ae.pcfc.cldos.online.common.clddb.domain;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.envers.Audited;

import ae.pcfc.cldos.online.common.domain.BaseEntity;


/**
 * The persistent class for the T_CLDOS_TASK_MASTER database table.
 * 
 */
@Entity
@Table(name="T_CLDOS_TASK_MASTER")
@Audited
public class TaskMaster extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	public static final Long __ADMIN_APPROVE_TASK_CODE = 4l;
	
	public static final Long __ALL_RESUBMIT = 3l;
	
	public static final String __TASK_NAME = "taskName";
	
	public static final String __TASK_TYPE = "taskType";
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="TASK_CODE")
	private long taskCode;

	@Column(name="TASK_NAME")
	private String taskName;

	@Column(name="TASK_TYPE")
	private String taskType;

	//bi-directional many-to-one association to MessageInbox
	@OneToMany(mappedBy="TaskMaster")
	private List<MessageInbox> MessageInboxs;

    public TaskMaster() {
    }

	public long getTaskCode() {
		return this.taskCode;
	}

	public void setTaskCode(long taskCode) {
		this.taskCode = taskCode;
	}

	public String getTaskName() {
		return this.taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public String getTaskType() {
		return this.taskType;
	}

	public void setTaskType(String taskType) {
		this.taskType = taskType;
	}

	public List<MessageInbox> getMessageInboxs() {
		return this.MessageInboxs;
	}

	public void setMessageInboxs(List<MessageInbox> MessageInboxs) {
		this.MessageInboxs = MessageInboxs;
	}
	
}